import $ from "jquery";

export const http=(url)=>{
    return new Promise((resolve, reject) => {
        $.ajax({
            url: "https://view.inews.qq.com/g2/getOnsInfo?name=disease_foreign",
            dataType: "jsonp",
            success: function (res) {
              let res1 = JSON.parse(res.data);
              resolve(res1);
            },
          });
    })
}